﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" MasterPageFile="~/Views/Shared/Iframe.Master" %>

<asp:Content ID="cJScripts" ContentPlaceHolderID="cphJScripts" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            resize();
        });

        function resize() {
            $("img").each(function (idx, elm) {
                $("<img>").attr("src", elm.src);
            });

            var iOffSet = ($.browser.msie) ? 0 : 20;
            var iW = $(document).width();
            var iH = $(document.body).height() + iOffSet;

            // adjust size
            parent.$.fn.colorbox.myResize(iW, iH);
        }
    </script>
</asp:Content>

<asp:Content ID="cMainContent" runat="server" ContentPlaceHolderID="cphMainContent">
<div id="contentPage">
    <div class="validMsg">
        <span><%= ViewData["ValidationMessage"] %></span>
    </div>
</div>
</asp:Content>